<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="&nx_project_xsl;main.xsl"/>
<xsl:import href="&nx_app_xsl;user_menu.xsl"/>
<xsl:template name="content">
<xsl:call-template name="user_menu"/>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
 <tr>
    <td colspan="2">
        <xsl:if test="role_validation">
            <div class="error">This form is contains errors. <br/>Please check highlighted fields.</div>            
        </xsl:if>
    </td>
  </tr>
  <tr>
    <td>
      <form name="role_add" method="post">
        <table width="100%" border="0" cellspacing="0" cellpadding="3">
          <tr align="center">
            <td colspan="2"><b>Role Add/Edit</b></td>
          </tr>
        
          <tr> 
            <td align="right">
                <xsl:if test="role_validation/name/failed">
                <xsl:attribute name="class">error</xsl:attribute>
                </xsl:if>Name*</td>
            <td>
              <input type="text" name="name" value="{//role/name|_post/name}" size="25"/>
            </td>
          </tr>
          <tr> 
            <td align="right">
                <xsl:if test="role_validation/description/failed">
                <xsl:attribute name="class">error</xsl:attribute>
                </xsl:if>Description*</td>
            <td>
              <input type="text" name="description" value="{//role/description|_post/description}" size="50"/>
            </td>
          </tr>
           
           <tr> 
            <td></td>
            <td align="center">
              <input type="submit" name="submit" value="Submit"/>
            </td>
          </tr>
        </table>
      </form>
    </td>
  </tr>
</table>

</xsl:template>


</xsl:stylesheet>

